package com.zero.business.member;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/*
 *   会员模块 启动类
 * */

@SpringBootApplication
@EnableDiscoveryClient   // 启动 nacos 客户端
@EnableFeignClients      // 启动 feign 远程调用
@MapperScan(basePackages = {"com.zero.business.member.mapper"})   // 这个不加会报错....离谱
@ComponentScan(basePackages = {"com.zero"})  // 配置扫描的范围，要包括到全局异常处理器所在类，否则手动跑出的异常，全局异常处理器捕捉不到
public class MemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(MemberApplication.class,args);
    }

}
